package org.blogspot.t0yv0.marcalog.util

import javax.servlet._
import javax.servlet.http._

trait Servlet extends HttpServlet {
  def respond(ctx: HttpContext);

  override def doGet(req: HttpServletRequest, resp: HttpServletResponse) =
    respond(new HttpContext(req, resp));

  override def doPost(req: HttpServletRequest, resp: HttpServletResponse) =
    respond(new HttpContext(req, resp));
}
